package cn.shuo.app.model;

import cn.shuo.app.db.model.APhotoAlbum;
import cn.shuo.app.db.model.AQuestion;
import com.google.gson.annotations.SerializedName;
import lombok.Data;

import java.util.List;


@Data
public class AQuestionDto extends AQuestion {

    /**
     * id : 1030
     * user_id : 1
     * title : 如何正确的算个人消费贷款利率？
     * status : finalize //完成
     * check : 1
     * marrow : 1
     * new : 1
     * sticky : 1
     * reading_weight : 100
     * reading : 1331
     * voice : null
     * like : 790
     * theme_pic : posts/2020/04/26/5b8cf5fca2bc252af8ae4247ab61a52f.jfif
     * created_at : 2周前
     * updated_at : 6小时前
     * board_id : 28 //面板id
     * docx : null
     * topic_id : null
     * bank_id : null
     * child_id : null
     * area_id : null
     * city_id : null
     * comments_count : 2
     * from_board : 贷款利息
     * photoalbums : [{"id":1041,"post_id":1030,"path":"images/2020/04/26/378daeec14bf2e1ce8b1bca0f581e170.png","sort":"0","created_at":"2020-04-26 22:55:45","updated_at":"2020-04-26 22:55:45"}]
     * user : {"id":1,"name":"蹦擦擦","avatar":"files/images/202004/01/1_1585715979_KEJLhcJznd.jpg"}
     */

    @SerializedName("new")
    private int newX;
    private String created_at;
    private String updated_at;
    private String from_board;
    /**
     * id : 1041
     * post_id : 1030
     * path : images/2020/04/26/378daeec14bf2e1ce8b1bca0f581e170.png
     * sort : 0
     * created_at : 2020-04-26 22:55:45
     * updated_at : 2020-04-26 22:55:45
     */
    private List<APhotoAlbum> photoalbums; //相簿
    private UserBean user;

    public static class UserBean {
        /**
         * id : 1
         * name : 蹦擦擦
         * avatar : files/images/202004/01/1_1585715979_KEJLhcJznd.jpg
         */

        private int id;
        private String name;
        private String avatar;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getAvatar() {
            return avatar;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }
    }

}
